
var tour;

apiready = function() {
    
   	tour = api.pageParam.tour;
   	
   	$api.text($api.byId('suoxu'), tour.type);
   	$api.text($api.byId('qianzheng'), tour.name);

}


function tel(){
//	alert('打电话');
	
	var tel = tour.tel;
	
	if(tel){
		api.call({type: 'tel_prompt', number: tel});
	}else{
		toast('无号码');
	}
}


function buy(){
//	alert('buy');

	openWin('tour_order', {'tour':tour});
}


//function suoxucailiao(){
////	alert('所需材料');
//	
//	openWin('tour_explain', {'title':'所需材料', 'content':tour.costdesc});
//}


//function xingchenggailan(){
////	alert('行程概览');
//
//	openWin('tour_explain', {'title':'行程概览', 'content':tour.trip});
//}
//
//
//function jiudianshuoming(){
////	alert('酒店说明');
//	
//	openWin('tour_explain', {'title':'酒店说明', 'content':tour.hoteldesc});
//}
//
//
//function tuwenshuoming(){
////	alert('图文说明');
//
//	openWin('tour_explain', {'title':'图文说明', 'content':tour.description});
//}
//
//
//function yudingxuzhi(){
////	alert('预订须知');
//
//	openWin('tour_explain', {'title':'预订须知', 'content':tour.notice});
//}

